using pixolut.BizBlox;

public class CandyBar : Food
{

//START BizBlox Generated Code : Do not remove or alter this comment
//Last Updated : Friday, 30 March 2007 3:00:52 PM
//BizBlox Version : 1.2.1.0
#region "BizBlox Generated Code"


// Start BizBloxBuilder Metadata
// $Identifier = +InheritedElements
// $DoNotModify = False

    public CandyBar():base(){
    }

    public CandyBar(System.Guid uid) : base(uid){
    }

    public new enum Columns {
        Brand,
        FoodID
    }

    public override string TableName() {
        return "CandyBar";
    }

// End BizBloxBuilder Metadata

// Start BizBloxBuilder Metadata
// $Identifier = Brand
// $DoNotModify = False

    private System.String m_Brand;
    [Persist()]
    public System.String Brand{
        get {
            return m_Brand;
        }
        set {
            this.Touch();
            m_Brand = value;
        }
    }

// End BizBloxBuilder Metadata

// Start BizBloxBuilder Metadata
// $Identifier = FoodId
// $DoNotModify = False

    private System.Guid m_FoodID;
    [Persist(), PrimaryKey()]
    public System.Guid FoodID{
        get {
            return m_FoodID;
        }
        set {
            this.Touch();
            m_FoodID = value;
        }
    }

// End BizBloxBuilder Metadata

// Start BizBloxBuilder Metadata
// $Identifier = FoodId.ForeignReference
// $DoNotModify = False

    public Food GetByFoodID() {
        Food obj = new Food(FoodID);
        obj.Load();
        return obj;
    }

// End BizBloxBuilder Metadata

// Start BizBloxBuilder Metadata
// $Identifier = +OtherElements
// $DoNotModify = False

// End BizBloxBuilder Metadata

#endregion

//END BizBlox Generated Code : Do not remove or alter this comment
}